#实例方法演示

class Person:
    def __init__(self):
        self.name = 'yui'
        self.age = 18
    def say(self):
        print("%s is %d years old" % (self.name, self.age))

if __name__ == '__main__':
    p = Person()
    p.say()